package com.jincheng.system.mapstruct;

import com.jincheng.system.domain.Comment;
import com.jincheng.system.domain.CommentLike;
import com.jincheng.system.domain.dto.CommentDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CommentMapStruct {

    CommentDTO toCommentDTO(Comment comment);

    List<CommentDTO> toCommentDTOList(List<Comment> commentList);

    Comment toComment(CommentDTO commentDTO);

    List<Comment> toCommentList(List<CommentDTO> commentDTOList);

    CommentLike toCommentLike(CommentDTO commentDTO);

    List<CommentLike> toCommentLikeList(List<CommentDTO> commentDTOList);
}
